<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta content="telephone=no" name="format-detection" />
		<title>用户中心 - {$head['title']}</title>
		<base href="{URL}" />
		<link href="static/css/member.css" rel="stylesheet" />
		<link href="static/css/usercenter.css" rel="stylesheet" tii="usercenter" />
		<link href="static/css/ui-dialog.css" rel="stylesheet" />
		<script src="static/js/jquery.min.js"></script>
		<script src="static/js/common.js"></script>
		<script src="static/js/jquery.knob.js"></script>
		<script src="static/js/modernizr.custom.js"></script>
		<script src="static/js/dialog-plus-min.js"></script>
		<script src="static/js/utils.min.js"></script>
		<!--<script src="static/js/banner.js"></script>-->
		<script src="static/js/ko.page.js"></script>    
	</head>
	
	<body class="bg body UC-con">
		<input type="hidden" id="accountId" value="{$_uid}" />
		<div class="head">
			<div class="logo-wrap"></div>
			<div class="top_menu">
				<div class="clear">
					<a href="{U('/lottery/view',['id'=>$lottery[0]['id']])}" id="gameListBtn" class="games" title="游戏大厅"><span>游戏大厅</span></a>
					<a href="./" class="getout" title="返回首页"><span>返回首页</span></a>
					<a href="https://v88.live800.com/live800/chatClient/chatbox.jsp?companyID=801475&configID=5925&jid=4583178362&s=1" target="_blank" class="service" title="在线客服">
						<span class="new-msg" id="NewMsg">在线客服</span>
					</a>
					<a href="{U('/news',['id'=>9])}" class="rule" id="Rule" title="规则说明"><i></i><span class="rule_description">规则说明</span></a>
					<a href="{U('/news',['id'=>4])}" class="help" title="游戏帮助"><i></i><span class="play_help">游戏帮助</span></a>
					<a title="登出账号" class="btn-login-out" href="{U('member/login/logout')}"><span>登出账号</span></a>
				</div>

				<!--下拉游戏选择--->
				<div class="menu-child" style="display:none;" id="lot_sec_menu">
					<div class="gamelist clear">
						<div class="official_play">
							<div class="gamelist_tit clear">
								<h1 class="red_style">官方玩法</h1>
							</div>
							<div class="high_wrap">
								<div class="gamelist_l">
									<ul>
										{loop $lottery as $val}
										<li>
											<a class="game_{$val['id']}" href="{U('/lottery/view',['id'=>$val['id']])}"><font>{$val['title']}</font></a>
										</li>
										{/loop}
									</ul>
								</div>
							</div>

						</div>
						<div class="cut-line"></div>
						<div class="credit_play">
							<div class="gamelist_tit clear">
								<h1 class="orange_style">信用玩法</h1>
							</div>
							<div class="high_wrap">
								<div class="gamelist_r">
									<ul>
										{loop $lottery as $val}
										<li>
											<a class="game_{$val['id']}" href="{U('/lottery/view',['id'=>$val['id']])}"><font>{$val['title']}</font></a>
										</li>
										{/loop}
									</ul>
								</div>
							</div>
						</div>
					</div>
					<div class="triangles_back"></div>
				</div>
				<!--下拉游戏选择 end--->
			</div>
		</div>
		
		<div class="container clear">
			<div class="side-left">
				<div class="user-info">
					<div class="userbox">
						<ul class="stc_1 clear">
							<li class="mane">
								<span class="stc_t">账号：</span>
								<span class="stc_c">{$_user['username']}</span>
							</li>
							<li class="balance">
								<span class="stc_t">余额：</span>
								<span class="stc_c" id="AvailableBalance">{$_user['money']}</span>
							</li>
						</ul>
					</div>
					<div class="acc-links clear" id="OpenNewWindow">
						<a title="在线存款" class="btn-navacc btn-navacc-deposit" href="{U('member/recharge')}"><span title="在线存款">充值</span></a>
						<a title="在线取款" class="btn-navacc btn-navacc-withdraw"  href="{U('member/cash')}"><span title="在线取款">提现</span></a>
					</div>
				</div>

				<div class="side_menu" id="sideMenu">					
					<div class="sidem_item">
						<a href="javascript:void(0)" class="sidem_b"><span>投注记录</span></a>
						<ul style="display:none;">
							<li{if $m.$c == 'memberorder'} class="active"{/if}><a href="{U('member/order')}"><span>购彩查询</span></a></li>
							<li{if $m.$c == 'memberordertrack'} class="active"{/if}><a href="{U('member/ordertrack')}"><span>追号查询</span></a></li>
						</ul>
					</div>
					<div class="sidem_item">
						<a href="javascript:void(0)" class="sidem_b"><span>报表管理</span></a>
						<ul style="display:none;">
							<li{if $m.$c == 'membermoney'} class="active"{/if}><a href="{U('member/money')}"><span>帐变报表</span></a></li>
							<li{if $m.$c == 'membermoneycount'} class="active"{/if}><a href="{U('member/moneycount')}"><span>个人报表</span></a></li>
							<!--<li{if $m.$c == 'memberactivity'} class="active"{/if}><a href="{U('member/activity')}"><span>优惠活动详情</span></a></li>-->
						</ul>
					</div>
					<div class="sidem_item">
						<a href="javascript:void(0)" class="sidem_b"><span>账户管理</span></a>
						<ul style="display:none;">
							<li{if $m.$c == 'memberindex'} class="active"{/if}><a href="{U('member')}"><span>个人总览</span></a></li>
							<li{if $m.$c == 'memberpassword'} class="active"{/if}><a href="{U('member/password')}"><span>密码管理</span></a></li>
							<li{if $m.$c == 'memberbank'} class="active"{/if}><a href="{U('member/bank')}"><span>银行卡管理</span></a></li>
							<li{if $m.$c == 'memberinfo'} class="active"{/if}><a href="{U('member/info')}"><span>用户资料</span></a></li>
							<li{if $m.$c == 'memberlottery'} class="active"{/if}><a href="{U('member/lottery')}"><span>彩种信息</span></a></li>
							<!--<li{if $m.$c == 'memberlotterylimit'} class="active"{/if}><a href="{U('member/lotterylimit')}"><span>彩种限额</span></a></li>-->
						</ul>
					</div>
					<div class="sidem_item">
						<a href="javascript:void(0)" class="sidem_b"><span>短信公告</span></a>
						<ul style="display:none;">
							<li{if $m.$c == 'membermessage'} class="active"{/if}><a href="{U('member/message')}">站内短信</a></li>
							<li{if $m.$c == 'membernotice'} class="active"{/if}><a href="{U('member/notice')}">网站公告</a></li>
						</ul>
					</div>
				</div>
				<script type="text/javascript">
					var _menutime;
					(function () {
						$('#sideMenu li.active').parent().show();

						/// 左边菜单折叠效果
						var sidemenu = $("#sideMenu");
						var btnbars = sidemenu.children().children("a");
						btnbars.on("click", function () {
							var $this = $(this);
							$this.next("ul").slideToggle("fast");
							$this.parent().siblings().children("ul").slideUp("fast");
						});
						sidemenu.find(".sidem_sub").on("click", function () {
							$(this).next().slideToggle("fast");
						});
						
						$("#gameListBtn,#lot_sec_menu").hover(function () {
							$('#lot_sec_menu').stop(true, true).slideDown(300);
							clearTimeout(_menutime);
						}, function () {
							_menutime = setTimeout(function () {
								$('#lot_sec_menu').stop().slideUp(100);
							}, 300);
						});
					})();
				</script>
			</div>
			
			<div class="ui-main" id="ulMain">